window.YEarth = function(option){
	this.div = option.div;
	this.earth;
	this.init();
}

window.YEarth.prototype = {
	init:function(){
		
	},
	loadEarthPage:function(){
		me = this;
		google.load("earth", "1",{"callback" : init});
		function init() {
		   google.earth.createInstance(me.div, initCB, failureCB);
		}
		function initCB(instance) {
			   me.earth = instance;
			   me.earth.getWindow().setVisibility(true);
			}
		function failureCB(errorCode) {
		}
	}
}